import { ModuleWithProviders, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ConfirmationService } from '@abp/ng.theme.shared';
import { NgConfirmationService } from './ng-confirmation.service';
import { NzModalModule } from 'ng-zorro-antd/modal';

@NgModule({
  declarations: [],
  imports: [CommonModule, NzModalModule],
  exports: [NzModalModule],
})
export class MessageModule {
  static forRoot(): ModuleWithProviders<MessageModule> {
    return {
      ngModule: MessageModule,
      providers: [{ provide: ConfirmationService, useClass: NgConfirmationService }],
    };
  }
}
